<?php

namespace App\Models\users;

use App\Models\BaseModel;
use Illuminate\Database\Eloquent\Casts\Attribute;
use lxs\tools\Tools;


class UsersWithdrawLogModel extends BaseModel
{
    protected $table = 'users_withdraw_log';
    protected $primaryKey = 'id';

    const WITHDRAW_APPLYING = 1; // 申请中
    const WITHDRAW_REFUSE = 2; // 已驳回
    const WITHDRAW_SUCCESS = 3; // 成功

    protected function createTime(): Attribute
    {
        return Attribute::make(
            get: fn (string $value) => Tools::timeConvert($value)
        );
    }

}
